# !/usr/bin/env python
# -*- coding:utf-8 -*-
# @FileName : zsj.py
# @Time     : 2024/4/18 21:17
# @Author   : Robot-Zsj
"""
description:

i:
/acm,/bb

o:
/acm/bb
"""
prefix, suffix = input().split(",")

prefix = prefix.rstrip("/")
suffix = suffix.lstrip("/")

print(prefix + "/" + suffix)
